<?php

namespace app\api\model;

use think\Model;

/**
 * ActivityPerform
 */
class Perform extends Model
{
    // 表名
    protected $name = 'special_activity_perform';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function Activity(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\Activity::class, 'activity_id', 'id');
    }

    public function Times(): \think\model\relation\BelongsTo
    {
        return $this->belongsTo(\app\admin\model\Times::class, 'times_id', 'id');
    }
}